ComponentOne Xamarin.iOS
SortAsync<T>(ICollectionView<T>,SortDescription[]) Method


C1.CollectionView Assembly > C1.CollectionView Namespace > ICollectionViewEx Class > SortAsync Method : SortAsync<T>(ICollectionView<T>,SortDescription[]) Method
The collection view.
The sort descriptions that determine how the data will be sort.
Sorts the collection view according to the specified sort descriptions.
Syntax
'Declaration
 
<AsyncStateMachineAttribute(C1.CollectionView.ICollectionViewEx/d__11`1)> 
<ExtensionAttribute()> 
Public Overloads Shared Function SortAsync(Of T As Class)( _ 
   ByVal collectionView As ICollectionView(Of T), _ 
   ByVal ParamArray sortDescriptions() As SortDescription _ 
) As Task
'Usage
 
Dim collectionView As ICollectionView(Of T)
Dim sortDescriptions() As SortDescription
Dim value As Task
 
value = ICollectionViewEx.SortAsync(Of T)(collectionView, sortDescriptions)
[AsyncStateMachine(C1.CollectionView.ICollectionViewEx/d__11`1)] 
[Extension()] 
public static Task SortAsync<T>( 
   ICollectionView<T> collectionView, 
   params SortDescription[] sortDescriptions 
) 
where T: class

Parameters

collectionView
The collection view.
sortDescriptions
The sort descriptions that determine how the data will be sort.

Type Parameters

T
See Also

Reference

ICollectionViewEx Class
ICollectionViewEx Members
Overload List